<script lang="ts" setup>
import { Button, Divider } from 'ant-design-vue'
defineProps<{
  name: string,
  disabled: boolean,
}>()

defineEmits<{
    (e: 'save'): void
}>()

const router = useRouter()
</script>

<template>
  <div>
    <div flex="~ col" class="safe-box">
        <!-- <span text-8>编辑/新增{{ name }}</span> -->
        <div space-x-4 flex="~  justify-end items-center " class="footer-btn">
            <Button size="large" @click="router.back()">返回</Button>
            <Button size="large" type="primary" :disabled="disabled" @click="$emit('save')">保存</Button>
        </div>
        </div>
    </div>
</template>


<style scoped>
.safe-box {
    height: 80px;
}

.footer-btn {
    width: 100%;
    height: 80px;
    background-color: #FFFFFF;
    padding: 0 30px;
    position: fixed;
    z-index: 9;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
</style>